import aiofiles
import json

async def load(filename):
	async with aiofiles.open(filename, "r", encoding="utf-8") as f:
		content = await f.read()
	return json.loads(content)

async def dump(obj, filename):
	async with aiofiles.open(filename, "w", encoding="utf-8") as f:
		await f.write(json.dumps(obj, ensure_ascii=False, indent="\t"))

def loads(*args, **kwargs):
	return json.loads(*args, **kwargs)